package com.cooba.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.cooba.R;
import com.cooba.utils.Utils;

/**
 * Created by Administrator on 2016/6/15.
 */
public class DrawOutTipDialog extends Dialog implements
        OnClickListener {
    int layoutRes;// 布局文件
    Context context;
    private TextView mTip;
    private String detail;


    public DrawOutTipDialog(Context context) {
        super(context);
        this.context = context;
    }

    /**
     * 自定义布局的构造方法
     *
     * @param context
     * @param resLayout
     */
    public DrawOutTipDialog(Context context, int resLayout) {
        super(context);
        this.context = context;
        this.layoutRes = resLayout;
    }

    /**
     * 自定义主题及布局的构造方法
     *
     * @param context
     * @param theme
     * @param resLayout
     */
    public DrawOutTipDialog(Context context, int theme, int resLayout) {
        super(context, theme);
        this.context = context;
        this.layoutRes = resLayout;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.setContentView(layoutRes);
        // 根据id在布局中找到控件对象
        mTip = (TextView) findViewById(R.id.draw_out_tip_dialog_tv);
        this.setCanceledOnTouchOutside(true);
        this.setCancelable(true);
    }

    @Override
    public void onClick(View v) {
    }
}
